package com.example.ruralservicedigitalplatform.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "管理员实体")
public class Admin {
        @Schema(description = "管理员id")
        private Integer adminId; //ID
        @Schema(description = "管理员用户名")
        private String adminName; //用户名
        @Schema(description = "管理员密码")
        private String password; //密码
        @Schema(description = "管理员性别，1男，0女")
        private Integer gender; //性别 , 1 男, 0 女
        @Schema(description = "管理员电话")
        private String phoneNumber; //电话号码
        @Schema(description = "管理员年龄")
        private Integer age; //电话号码
        @Schema(description = "管理员头像")
        private String image;//用户头像
        @Schema(description = "管理员身份证")
        private String idNumber;//地址
        @Schema(description = "创建时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime createTime; //创建时间
        @Schema(description = "修改时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime updateTime; //修改时间
}
